package com.shine.log.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shine.log.entity.RequestLog;
import com.shine.log.info.RequestLogInfo;
import com.shine.log.mapper.RequestLogMapper;
import com.shine.log.request.RequestLogPageRequest;
import com.shine.log.service.RequestLogService;
import com.shine.mybatis.utils.PageUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author huihui
 * @date 2025/05/07 14:47
 * @description RequestLogServiceImpl
 */
@Slf4j
@Service
public class RequestLogServiceImpl extends ServiceImpl<RequestLogMapper, RequestLog> implements RequestLogService {

    @Override
    public IPage<RequestLogInfo> pageQuery(RequestLogPageRequest request) {
        return this.baseMapper.pageQuery(PageUtil.buildPage(request), request);
    }

    @Override
    public RequestLogInfo getById(Long id) {
        return this.baseMapper.getById(id);
    }

}